<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:forEach items="${param.replies}" var="reply">
    <div class="comment-item">

        <img src="${reply.user.pic}" alt="头像">
        <div class="info">
            <span class="username">${reply.user.username}</span>
            <span class="time">${reply.commentTime}</span>
            <p>${reply.content}</p>
        </div>
        <button class="reply-btn">回复</button>
        <c:if test="${not empty reply.replies}">
            <div class="reply-list">
                <c:set var="replies" value="${reply.replies}"/>
                <c:import url="recursiveComment.jsp">
                    <c:param name="replies" value="${replies}"/>
                </c:import>
            </div>
        </c:if>
    </div>
</c:forEach>